<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="monitoring/layout">

<head>
    <title th:text="#{cas.viewconfig.pagetitle}"></title>
</head>

<body id="cas">
<div id="container">
    <div layout:fragment="content">
        <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/cupertino/jquery-ui.css"/>
        <link rel="stylesheet" href="//cdn.datatables.net/plug-ins/1.10.6/integration/jqueryui/dataTables.jqueryui.css" />

        <script type="text/javascript" th:inline="javascript">
            var urls = {
                getConfiguration: /*[[@{/status/env}]]*/
            };
            function jqueryReady() {
                head.load(
                        /*[[@{/js/viewConfig.js}]]*/
                );
            }
        </script>

        <div class="viewConfig">
            <div id="loadingMessage"><h3 th:text="#{cas.viewconfig.loading}" /></div>


            <div id="viewConfigError">
                <h2 th:text="#{cas.viewconfig.errormessage}"></h2>
                <div>
                    <input class="btn btn-success" type="button" onclick="location.reload();"
                           th:value="#{cas.viewconfig.button.refresh}"/>
                </div>
            </div>

            <div id="view-configuration">
                <div id="alertWrapper"/>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 th:text="#{cas.viewconfig.pagetitle}">
                            <span class="glyphicon glyphicon-cog" aria-hidden="true"/>
                        </h4>
                    </div>
                    <div class="panel-body">
                        <div id="containers-table" class="container-fluid">
                            
                            <table id="viewConfigsTable" class="display table table-striped table-bordered">
                                <thead>
                                <tr>
                                    <th th:text="#{cas.viewconfig.table.column.key}" />
                                    <th th:text="#{cas.viewconfig.table.column.value}" />
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td></td>
                                    <td></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>

                    </div>

                </div>
            </div>
        </div>
        <div th:replace="fragments/footerButtons"/>
    </div>
    
</div>
</body>
</html>
